const express=require('express');
const mysql=require('mysql');
const urlobj=require('url');
//引用自定义
//const commte=require('../../libs/commtle');
//链接数据库
var db=mysql.createPool({
    host:'localhost',
    user:'root',
    password:'',
    database:'sincethesummermusic'
});
//========================
//业务逻辑
module.exports = function() {
    var router = express.Router();

    //开始渲染后台首页
    router.get('/contadd.html',function(req,res,next){
        res.render("admin/contadd.ejs");
    });

    return router;
}